<template>
    <view>
        <view class="row pt80 cen">
        	<view class="jhhbsrrt fz28 z9 pr" :class="ikdx==idx+1?'act':''" v-for="(sd,idx) in jhhnsd" :key="idx" @tap="seertt(idx)">
        		<view class="f_b pr">
        			{{sd}}
        			<text class="xiahuaxian"></text>
        		</view>
        	</view>
        </view>
		
		<view class="pr kjhjdeert" :style="{height:hhgbsd+'px'}">
			<scroll-view scroll-y="true" class="h100 " :scroll-into-view="jhbnsd">
				<!-- <view class="pd" v-for="(sd,idx) in list" :key="idx" :id="sd.id">
					<view class="cf fz32">
						{{sd.id}}
					</view> -->
					<view class="row sderttr pt20 pm20" v-for="(sf,idx) in list" @tap="urllx(sf.id,sf.fid)" :key="idx">
					
						<view class="ml30">
							<image :src="sf.source" class="yj useertty cz"></image>
						</view>
						<view class="cf fz32 pl20">
							{{sf.updated_at}}
						</view>
					</view>
				<!-- </view> -->
			</scroll-view>
			<!-- <view class="kjnxeerty">
				<view class="drttsewert" v-for="(sd,idx) in datas" :key="idx" @tap="kkjnxert(sd.letter)">
					<text class="cf" v-if="jhbnsd==sd.letter">{{sd.letter}}</text>
					<text class="z9" v-else>{{sd.letter}}</text>
				</view>
			</view> -->
		</view>
		
		
    </view>
</template>
<script>
		import airport from '@/common/airport.js'
    export default {
        data() {
            return {
				ikdx: 1,
				jhhnsd: [
					'好友',
					'群聊'
				],
				// list: airport.list,
				list: airport.list,
				jhbnsd: 'A',
				hhgbsd: 0,
				xzsdfd: [],
				datas:[],
			}
        },
        components: {},
		onLoad() {
			let hggsde = uni.getSystemInfoSync().windowHeight
			this.hhgbsd = hggsde - 90
			
			this.lists()
		},
        methods: {
			seertt(idx) {
				this.ikdx = parseInt(idx)+1 
			},
			async lists(){
				let flits=await this.get('/api/friends')
				console.log("好友列表",flits)				
				this.list=flits.data
			}
		},
        mounted() {},
		onNavigationBarButtonTap(e) {
			let th = this
			console.log(e.index);
			if (e.index == 2) {
				uni.navigateTo({
					url:'ApplyNotification'
				})
			}else if(e.index == 0){
				uni.navigateTo({
					url:'addmem'
				})
			}
		
		}
    }
</script>
<style lang='scss' scoped>

</style>
